/**$Licence:
 *   Use this however/wherever you like, just don't blame me if it breaks anything.
 *   Copyright (C) 2008 - 2012 xingsheng.zhu@gmail.com All rights reserved.
 */
package com.blazemina.container;

import com.blazemina.config.BlazeminaConfig;
import com.blazemina.mina.Request;
import com.blazemina.mina.Response;

/**
 * @author JackChu
 * @version 1.0.0 2012-1-13 下午5:07:11
 */
public abstract class GenericRequestProcessor implements RequestProcessor{

	private BlazeminaConfig blazeminaConfig;
	
	@Override
	public void init(BlazeminaConfig blazeminaConfig) {
		this.blazeminaConfig = blazeminaConfig;
		init();
	}

	@Override
	public abstract void processor(Request request, Response response);

	@Override
	public BlazeminaConfig getBlazeminaConfig() {
		return this.blazeminaConfig;
	}
	
	/**
	 * 用户额外初始化
	 */
	public void init(){
		
	}

}
